Refactor: Rename MainWindow to frmAdd.

This commit is contained in:
2017-05-10 20:45:05 +01:00
parent b82df8f31a
commit 96e277615c
7 changed files with 26 additions and 15 deletions

View File

@@ -1,3 +1,14 @@
2017-05-10 Natalia Portillo <claunia@claunia.com>
* frmAdd.cs:
* Program.cs:
* gtk-gui/frmAdd.cs:
* gtk-gui/gui.stetic:
* osrepodbmgr.csproj:
* gtk-gui/generated.cs:
* gtk-gui/MainWindow.cs:
Refactor: Rename MainWindow to frmAdd.
2017-05-04 Natalia Portillo <claunia@claunia.com>
* Settings.cs:

View File

@@ -57,7 +57,7 @@ namespace osrepodbmgr
Settings.LoadSettings();
CheckUnar();
Application.Init();
MainWindow win = new MainWindow();
frmAdd win = new frmAdd();
win.Show();
Application.Run();
}

View File

@@ -35,7 +35,7 @@ using Newtonsoft.Json;
using osrepodbmgr;
using Schemas;
public partial class MainWindow : Window
public partial class frmAdd : Window
{
Thread thdPulseProgress;
Thread thdFindFiles;
@@ -50,7 +50,7 @@ public partial class MainWindow : Window
ListStore fileView;
ListStore osView;
public MainWindow() : base(WindowType.Toplevel)
public frmAdd() : base(WindowType.Toplevel)
{
Build();

View File

@@ -1,7 +1,7 @@
// This file has been generated by the GUI designer. Do not modify.
public partial class MainWindow
public partial class frmAdd
{
private global::Gtk.VBox vbox1;
@@ -124,11 +124,11 @@ public partial class MainWindow
protected virtual void Build()
{
global::Stetic.Gui.Initialize(this);
// Widget MainWindow
this.Name = "MainWindow";
// Widget frmAdd
this.Name = "frmAdd";
this.Title = global::Mono.Unix.Catalog.GetString("OS Repository DB Manager");
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
// Container child MainWindow.Gtk.Container+ContainerChild
// Container child frmAdd.Gtk.Container+ContainerChild
this.vbox1 = new global::Gtk.VBox();
this.vbox1.Name = "vbox1";
this.vbox1.Spacing = 6;
@@ -708,7 +708,7 @@ public partial class MainWindow
w63.Expand = false;
w63.Fill = false;
this.Add(this.vbox1);
if((this.Child != null))
if ((this.Child != null))
{
this.Child.ShowAll();
}

View File

@@ -8,7 +8,7 @@ namespace Stetic
internal static void Initialize(Gtk.Widget iconRenderer)
{
if((Stetic.Gui.initialized == false))
if ((Stetic.Gui.initialized == false))
{
Stetic.Gui.initialized = true;
}
@@ -20,7 +20,7 @@ namespace Stetic
public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size)
{
Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
if((res != null))
if ((res != null))
{
return res;
}
@@ -32,9 +32,9 @@ namespace Stetic
{
return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
}
catch(System.Exception)
catch (System.Exception)
{
if((name != "gtk-missing-image"))
if ((name != "gtk-missing-image"))
{
return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size);
}

View File

@@ -7,7 +7,7 @@
<widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<widget-library name="../bin/Debug/osrepodbmgr.exe" internal="true" />
</import>
<widget class="Gtk.Window" id="MainWindow" design-size="857 544">
<widget class="Gtk.Window" id="frmAdd" design-size="857 544">
<property name="MemberName" />
<property name="Title" translatable="yes">OS Repository DB Manager</property>
<property name="WindowPosition">CenterOnParent</property>

View File

@@ -70,8 +70,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="gtk-gui\generated.cs" />
<Compile Include="MainWindow.cs" />
<Compile Include="gtk-gui\MainWindow.cs" />
<Compile Include="frmAdd.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="frmHelp.cs" />
@@ -98,6 +97,7 @@
<Compile Include="gtk-gui\osrepodbmgr.dlgFilesystem.cs" />
<Compile Include="dlgOpticalDisc.cs" />
<Compile Include="gtk-gui\osrepodbmgr.dlgOpticalDisc.cs" />
<Compile Include="gtk-gui\frmAdd.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />