Exemple #1
0
        public frmMain(User user)
        {
            InitializeComponent();
            FullMode.Fullscreen(this);
            this.ControlBox = false;

            Text = "Welcome - " + user.Name;
        }
Exemple #2
0
        public reportViewer(List <customerListReports> reportCustomerAllReports)
        {
            InitializeComponent();
            FullMode.Fullscreen(this);

            customerAllReportsDoc.SetDataSource(reportCustomerAllReports);
            crystalReportViewer1.ReportSource = customerAllReportsDoc;
        }
Exemple #3
0
 public NonblockRenderer(IRenderer <T> renderer, int queueSize, FullMode fullMode)
     : this(
         renderer,
         queueSize,
         fullMode switch
 {
     FullMode.DropOldest => BoundedChannelFullMode.DropOldest,
     _ => BoundedChannelFullMode.DropNewest,
 }
Exemple #4
0
        public frmLocations()
        {
            Database.Open();
            InitializeComponent();
            FullMode.Fullscreen(this);

            init(cmbpro, cmbdis, cmbcom);
            refresh();
        }
Exemple #5
0
        public Login()
        {
            InitializeComponent();
            this.ControlBox = false;
            FullMode.Fullscreen(this);
            //Connection.Open(Properties.Settings.Default.Hostname, "PSMS2");

            OpenCon();

            txtUsername.Text = "admin";
            txtPassword.Text = "123";
        }
Exemple #6
0
        /// <summary>
        /// Serializes the specified struct to bin array
        /// </summary>
        /// <param name="xstruct"> the struct containing the data
        /// </param>
        /// <returns></returns>
        public static unsafe byte[] Serialize(FullMode xstruct)
        {
            var buffer = new byte[164];

            fixed(void *d = &buffer[0])
            {
                void *s = &xstruct;

                CopyMemory(d, s, buffer.Length);
            }

            return(buffer);
        }
Exemple #7
0
 /// <summary>
 /// Creates a new instance of <see cref="NonblockActionRenderer{T}"/> decorating the given
 /// <paramref name="renderer"/> instance.
 /// </summary>
 /// <param name="renderer">The renderer to decorate which has the <em>actual</em>
 /// implementations and receives events in a background thread.</param>
 /// <param name="queueSize">The size of the internal event queue.</param>
 /// <param name="fullMode">Specifies the behavior when the internal event queue is full so
 /// that no more event can be added.</param>
 public NonblockActionRenderer(IActionRenderer <T> renderer, int queueSize, FullMode fullMode)
     : base(renderer, queueSize, fullMode)
 {
     ActionRenderer = renderer;
 }
Exemple #8
0
 public frmLogin()
 {
     InitializeComponent();
     FullMode.Fullscreen(this);
     Connection.Open(Properties.Settings.Default.Hostname, "PSMS2");
 }