public ConfirmWindowDeleteDialog(string windowName, string fileName, Stetic.ProjectItemInfo obj) { XML glade = new XML(null, "gui.glade", "ConfirmWindowDeleteDialog", null); glade.Autoconnect(this); if (obj is Stetic.WidgetInfo && ((Stetic.WidgetInfo)obj).IsWindow) { label.Text = GettextCatalog.GetString("Are you sure you want to delete the window '{0}'?", windowName); } else if (obj is Stetic.WidgetInfo) { label.Text = GettextCatalog.GetString("Are you sure you want to delete the widget '{0}'?", windowName); } else if (obj is Stetic.ActionGroupInfo) { label.Text = GettextCatalog.GetString("Are you sure you want to delete the action group '{0}'?", windowName); } else { label.Text = GettextCatalog.GetString("Are you sure you want to delete '{0}'?", windowName); } if (fileName != null) { checkbox.Label = string.Format(checkbox.Label, fileName); checkbox.Active = true; } else { checkbox.Hide(); } }
void on_button_reportes_clicked(object sender, EventArgs args) { Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null); gxml.Autoconnect(this); rango_de_fecha.Show(); checkbutton_impr_todo_proce.Label = "Imprime TODO"; entry_referencia_inicial.IsEditable = false; entry_referencia_inicial.Text = DateTime.Now.ToString("dd-MM-yyyy"); entry_dia1.KeyPressEvent += onKeyPressEvent; entry_mes1.KeyPressEvent += onKeyPressEvent; entry_ano1.KeyPressEvent += onKeyPressEvent; entry_dia2.KeyPressEvent += onKeyPressEvent; entry_mes2.KeyPressEvent += onKeyPressEvent; entry_ano2.KeyPressEvent += onKeyPressEvent; entry_dia1.Text = DateTime.Now.ToString("dd"); entry_mes1.Text = DateTime.Now.ToString("MM"); entry_ano1.Text = DateTime.Now.ToString("yyyy"); entry_dia2.Text = DateTime.Now.ToString("dd"); entry_mes2.Text = DateTime.Now.ToString("MM"); entry_ano2.Text = DateTime.Now.ToString("yyyy"); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_vision); label_orden.Hide(); label_nom_cliente.Hide(); label142.Hide(); radiobutton_cliente.Hide(); radiobutton_fecha.Hide(); checkbutton_todos_los_clientes.Hide(); entry_referencia_inicial.Hide(); entry_cliente.Hide(); button_busca_cliente.Hide(); }
public rpt_envio_almacen(string nombrebd_, int idsubalmacen_) { connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB; nombrebd = conexion_a_DB._nombrebd; idsubalmacen = idsubalmacen_; Glade.XML gxml = new Glade.XML(null, "almacen_costos_compras.glade", "envio_almacenes", null); gxml.Autoconnect(this); entry_dia_inicio.Text = DateTime.Now.ToString("dd"); entry_mes_inicio.Text = DateTime.Now.ToString("MM"); entry_ano_inicio.Text = DateTime.Now.ToString("yyyy"); entry_dia_termino.Text = DateTime.Now.ToString("dd"); entry_mes_termino.Text = DateTime.Now.ToString("MM"); entry_ano_termino.Text = DateTime.Now.ToString("yyyy"); //hbox1.Hide(); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_buscar.Clicked += new EventHandler(on_buscar_clicked); button_rep.Clicked += new EventHandler(on_button_rep_clicked); checkbutton_todos_envios.Clicked += new EventHandler(on_checkbutton_todos_envios); checkbutton_seleccion_presupuestos.Hide(); crea_treeview_solicitud(); }
public lista_ordenes_compra() { Glade.XML gxml = new Glade.XML(null, "almacen_costos_compras.glade", "envio_almacenes", null); gxml.Autoconnect(this); connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB; nombrebd = conexion_a_DB._nombrebd; envio_almacenes.Title = "LISTA ORDENES DE COMPRA"; entry_dia_inicio.Text = DateTime.Now.ToString("dd"); entry_mes_inicio.Text = DateTime.Now.ToString("MM"); entry_ano_inicio.Text = DateTime.Now.ToString("yyyy"); entry_dia_termino.Text = DateTime.Now.ToString("dd"); entry_mes_termino.Text = DateTime.Now.ToString("MM"); entry_ano_termino.Text = DateTime.Now.ToString("yyyy"); //hbox1.Hide(); label3.Hide(); checkbutton2.Hide(); label1.Text = "Proveedor "; entry_codigo_producto.Hide(); entry_desc_producto.Hide(); button_buscar_prodreq.Hide(); checkbutton_seleccion_presupuestos.Hide(); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_buscar.Clicked += new EventHandler(on_buscar_ordencompra_clicked); button_rep.Clicked += new EventHandler(on_button_rep_clicked); checkbutton_todos_envios.Clicked += new EventHandler(on_checkbutton_todos_envios); button_buscar1.Clicked += new EventHandler(on_button_buscar_proveedor_clicked); crea_treeview_ordendecompra(); }
private void on_cb_runs_interval_clicked(object o, EventArgs args) { if (cb_runs_interval.Active) { cb_runs_interval_with_subruns.Show(); } else { cb_runs_interval_with_subruns.Hide(); } }
private void on_cb_jumps_reactive_clicked(object o, EventArgs args) { if (cb_jumps_reactive.Active) { cb_jumps_reactive_with_subjumps.Show(); } else { cb_jumps_reactive_with_subjumps.Hide(); } }
public reporte_de_abonos(string _nombrebd_, string tiporpt_, string LoginEmpleado_) { connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB; nombrebd = conexion_a_DB._nombrebd; escala_en_linux_windows = classpublic.escala_linux_windows; tiporpt = tiporpt_; LoginEmpleado = LoginEmpleado_; Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null); gxml.Autoconnect(this); rango_de_fecha.Show(); checkbutton_impr_todo_proce.Label = "Imprime TODO"; entry_referencia_inicial.IsEditable = false; entry_referencia_inicial.Text = DateTime.Now.ToString("dd-MM-yyyy"); entry_dia1.KeyPressEvent += onKeyPressEvent; entry_mes1.KeyPressEvent += onKeyPressEvent; entry_ano1.KeyPressEvent += onKeyPressEvent; entry_dia2.KeyPressEvent += onKeyPressEvent; entry_mes2.KeyPressEvent += onKeyPressEvent; entry_ano2.KeyPressEvent += onKeyPressEvent; entry_dia1.Text = DateTime.Now.ToString("dd"); entry_mes1.Text = DateTime.Now.ToString("MM"); entry_ano1.Text = DateTime.Now.ToString("yyyy"); entry_dia2.Text = DateTime.Now.ToString("dd"); entry_mes2.Text = DateTime.Now.ToString("MM"); entry_ano2.Text = DateTime.Now.ToString("yyyy"); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_abonos); label_orden.Hide(); label_nom_cliente.Hide(); label142.Hide(); radiobutton_cliente.Hide(); radiobutton_fecha.Hide(); checkbutton_todos_los_clientes.Hide(); entry_referencia_inicial.Hide(); entry_cliente.Hide(); button_busca_cliente.Hide(); }
void Init() { ui = new Glade.XML(null, "dialogs.glade", "groupDialog", null); ui.Autoconnect(this); viewDialog = groupDialog; TreeViewColumn col; allUserStore = new ListStore(typeof(string)); allUsersTreeview.Model = allUserStore; allUsersTreeview.Selection.Mode = SelectionMode.Multiple; col = allUsersTreeview.AppendColumn("Name", new CellRendererText(), "text", 0); col.SortColumnId = 0; allUserStore.SetSortColumnId(0, SortType.Ascending); currentMemberStore = new ListStore(typeof(string)); currentMembersTreeview.Model = currentMemberStore; currentMembersTreeview.Selection.Mode = SelectionMode.Multiple; col = currentMembersTreeview.AppendColumn("Name", new CellRendererText(), "text", 0); col.SortColumnId = 0; currentMemberStore.SetSortColumnId(0, SortType.Ascending); if (isSamba) { enableSambaButton.Hide(); } else { enableSambaButton.Toggled += new EventHandler(OnSambaChanged); } groupDialog.Resize(350, 400); }
public EditUserViewDialog(Connection conn, LdapEntry le) : base(conn, null) { currentEntry = le; Init(); isSamba = Util.CheckSamba(currentEntry); if (!isSamba) { firstTimeSamba = true; } try { getGroups(currentEntry); } catch (Exception e) { Log.Debug(e); } string userName = conn.Data.GetAttributeValueFromEntry(currentEntry, "cn"); editUserDialog.Title = userName + " Properties"; // General usernameLabel.UseMarkup = true; usernameLabel.Markup = String.Format("<span size=\"larger\"><b>{0}</b></span>", conn.Data.GetAttributeValueFromEntry(currentEntry, "uid")); fullnameLabel.Text = String.Format("{0} {1}", conn.Data.GetAttributeValueFromEntry(currentEntry, "givenName"), conn.Data.GetAttributeValueFromEntry(currentEntry, "sn")); firstNameEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "givenName"); initialsEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "initials"); lastNameEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "sn"); descriptionEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "description"); officeEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "physicalDeliveryOfficeName"); mailEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "mail"); phoneEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "telephoneNumber"); // Account usernameEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "uid"); uidSpinButton.Value = int.Parse(conn.Data.GetAttributeValueFromEntry(currentEntry, "uidNumber")); shellEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "loginShell");; homeDirEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "homeDirectory"); if (isSamba) { toggleSambaWidgets(true); smbEnableSambaButton.Hide(); smbLoginScriptEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaLogonScript"); smbProfilePathEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaProfilePath"); smbHomePathEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaHomePath"); smbHomeDriveEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaHomeDrive"); smbExpireEntry.Text = GetStringDate(conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaKickoffTime")); smbCanChangePwdEntry.Text = GetStringDate(conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaPwdCanChange")); smbMustChangePwdEntry.Text = GetStringDate(conn.Data.GetAttributeValueFromEntry(currentEntry, "sambaPwdMustChange")); } else { smbEnableSambaButton.Toggled += new EventHandler(OnSambaChanged); toggleSambaWidgets(false); } // Groups string pgid = conn.Data.GetAttributeValueFromEntry(currentEntry, "gidNumber"); if (_allGroupGids.ContainsKey(pgid)) { primaryGroupLabel.Text = _allGroupGids [pgid]; } // Address adStreetTextView.Buffer.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "street"); adPOBoxEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "postOfficeBox"); adCityEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "l"); adStateEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "st"); adZipEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "postalCode"); // Telephones tnHomeEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "homePhone"); tnPagerEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "pager"); tnMobileEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "mobile"); tnFaxEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "facsimileTelephoneNumber"); // Organization ozTitleEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "title"); ozDeptEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "departmentNumber"); ozCompanyEntry.Text = conn.Data.GetAttributeValueFromEntry(currentEntry, "o"); editUserDialog.Icon = Global.latIcon; editUserDialog.Run(); while (missingValues || errorOccured) { if (missingValues) { missingValues = false; } else if (errorOccured) { errorOccured = false; } editUserDialog.Run(); } editUserDialog.Destroy(); }