public Form1() { InitializeComponent(); con = new Controller(this); // this enables or disables admin functions if (Properties.Settings.Default.adminVersion == "true") { isAdminVersion = true; } else { isAdminVersion = false; } if (isAdminVersion) { adminToolStrip.Visible = true; } else { adminToolStrip.Visible = false; } }
public DataSetViewer(Controller myCon, DataSetCollection ds) { InitializeComponent(); this.dsArray = ds; this.con = myCon; }
public ReportPrinter(Controller myCon, DataSetCollection dsArray, string xslAssemblyPath, string xslAssemblyPath2, DataTable chartOfAccounts, int reportNumber) { InitializeComponent(); this.reportNumber = reportNumber; this.dsArray = dsArray; this.con = myCon; this.chartOfAccounts = chartOfAccounts; // this: creates an XmlReader; from this assembly's manifest; using the supplied stylesheet. // (should be done here to minimize IO during loop) this.xslAssemblyStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(xslAssemblyPath); this.xslAssemblyStream2 = Assembly.GetExecutingAssembly().GetManifestResourceStream(xslAssemblyPath2); }
public RowEditor(Controller con) { this.con = con; InitializeComponent(); }