private void LaporanLabaRugiView_Load(object sender, EventArgs e)
 {
     numericUpDownTahun.Value   = DateTime.Now.Year;
     comboBoxBulan.SelectedItem = CultureInfo.CurrentCulture.DateTimeFormat
                                  .MonthNames[DateTime.Now.AddMonths(-1).Month];
     OnLoadData?.Invoke(sender, e);
     ActiveControl = buttonTutup;
 }
示例#2
0
        public IHttpActionResult GetOnLoadData(string username)  // Get On Load Data (Reference Data and User Data)
        {
            RefData     refData     = new RefData();
            UserDetails userDetails = new UserDetails(username);
            OnLoadData  onLoadData  = new OnLoadData(refData, userDetails);

            return(Ok(onLoadData));
        }
示例#3
0
    private IEnumerator LoadUpdateConfig(string fullPath, bool isLocal, OnLoadData ret)
    {
        Debug.Log("LoadUpdateConfig " + fullPath);
        byte[] bytes   = new byte[0];
        bool   loadErr = false;

        if (isLocal)
        {
            if (File.Exists(fullPath))
            {
                bytes = File.ReadAllBytes(fullPath);
            }
            else
            {
                loadErr = true;
            }
        }
        else
        {
            WWW www = new WWW(fullPath);
            yield return(www);

            if (www != null)
            {
                bytes = www.bytes;
                www.Dispose();
            }
            else
            {
                loadErr = true;
            }
        }

        if (loadErr)
        {
            ret("", string.Format("Load client www error, path:{0}", fullPath));
            yield break;
        }
        else
        {
            ret(System.Text.Encoding.ASCII.GetString(bytes));
        }
    }
示例#4
0
 private void RoleView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     ActiveControl = crudcButtons.ButtonTutup;
 }
示例#5
0
 private void KasAwalView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
 }
示例#6
0
 private void PengaturanView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     ActiveControl = buttonCancel;
 }
示例#7
0
 private void LaporanTransaksiHariIniView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     ActiveControl = buttonTutup;
 }
示例#8
0
 private void StokBarangView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     ActiveControl = buttonTutup;
 }
 private void LaporanReturnPembelianView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     ActiveControl = buttonsDeletePrintDetail.ButtonTutup;
 }
示例#10
0
 private void PembelianView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
 }
示例#11
0
 internal static void LoadData()
 => OnLoadData?.Invoke();
示例#12
0
 private void BarangView_Load(object sender, EventArgs e)
 {
     OnLoadData?.Invoke(sender, e);
     listDataGrid.SetLastColumnFill("nama");
     ActiveControl = buttonTutup;
 }