コード例 #1
0
        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;
            }
        }
コード例 #2
0
        public DataSetViewer(Controller myCon, DataSetCollection ds)
        {
            InitializeComponent();

            this.dsArray = ds;
            this.con = myCon;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public RowEditor(Controller con)
 {
     this.con = con;
     InitializeComponent();
 }